﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Brain;
using Microsoft.Xna.Framework;

namespace Demos
{
    public class MainMenu_Animation : IMenuAnimation
    {
        public Vector2 SelectedScale = new Vector2(1.1f);
        public Vector2 NotSelectedScale = new Vector2(1);
        public int Frames = 5;

        public void UpdateSelected(MenuEntry selected)
        {
            if (selected is MenuEntry_Sprite)
            {
                MenuEntry_Sprite entry = selected as MenuEntry_Sprite;
                entry.Sprite.Color = Color.Yellow;
            }
        }

        public void UpdateNotSelected(MenuEntry notSelected)
        {
            if (notSelected is MenuEntry_Sprite)
            {
                MenuEntry_Sprite entry = notSelected as MenuEntry_Sprite;
                entry.Sprite.Color = Color.White;
            }
        }
    }
}
